home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970626-19970929
/
000266_news@newsmaster….columbia.edu _Sat Aug 30 14:01:08 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-09-28
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA24594
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 30 Aug 1997 14:01:07 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA25643
for kermit.misc@watsun; Sat, 30 Aug 1997 14:01:07 -0400 (EDT)
Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsxfer3.itd.umich.edu!oleane!calvacom!not-for-mail
From: do11@calva.net (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: Two problems with arrays in MS-DOS Kermit 3.15
Date: Sat, 30 Aug 1997 17:51:34 GMT
Organization: PCatHome&Me
Lines: 43
Message-ID: <34085a7f.81052@news.calvacom.fr>
Reply-To: do11@calva.net
NNTP-Posting-Host: parb18.calvacom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451
Xref: news.columbia.edu comp.protocols.kermit.misc:7583
Sorry, I don't want to take out a season-ticket to this group but.... ;-)
I discovered two problems with arrays (\&<letter>[]) :
First : declare \&e[0] does not empty the last element.
declare \&d[5]
for \%i 1 5 1 {def \&d[\%i] No}
for \%i 1 5 1 {echo \%i - (\&d[\%i])}
;
echo {Element 4 and 5 must be empty with declare \\&d[0]}
declare \&d[0]
declare \&d[5]
for \%i 1 3 1 {def \&d[\%i] Ys}
for \%i 1 5 1 {echo \%i - (\&d[\%i])}
;
echo {Element 5 is empty with def \\&d[5]}
def \&d[5]
for \%i 1 5 1 {echo \%i - (\&d[\%i])}
Second : writing an empty array element into a file does very strange
things and can crash the system
; Save this into a take file myfile.tak
; Launch Kermit 3.15
; Type take myfile.tak
; and the system crash if the last element of the array is empty
;
declare \&e[5]
for \%i 1 4 1 {def \&e[\%i] No}
open write file Test.dat
write file \&e[1]\13\10
write file \&e[2]\13\10
write file \&e[3]\13\10
write file \&e[4]\13\10
write file \&e[5]\13\10
close write-file
Comments please.
Best regards,
== Dominique Ottello == do11@calva.net == Paris == France ==